package com.wf.DouDiZhuOL.net.http;

import java.nio.charset.Charset;

import com.wf.DouDiZhuOL.MainFrame;
import com.wf.DouDiZhuOL.util.Constants;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelPromise;
import io.netty.handler.codec.http.DefaultFullHttpResponse;

public class HttpOutHandlerImp {
	public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception
	{
		if(Constants.MSG_LOG_DEBUG) 
		{
			DefaultFullHttpResponse resp = (DefaultFullHttpResponse)msg;
			MainFrame.setText("write:" + resp.content().toString(Charset.forName("UTF-8")));
		}
	}
}
